package cn.kgc.bilibili.service.impl;

import cn.kgc.bilibili.dao.VideoTypeMapper;
import cn.kgc.bilibili.pojo.VideoType;
import cn.kgc.bilibili.service.VideoService;
import cn.kgc.bilibili.service.VideoTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("videoTypeService")
public class VideoTypeServiceImpl implements VideoTypeService{
    /**
     * 郭鸿图
     */
   @Resource
   VideoTypeMapper videoService;
    @Override
    public List<VideoType> querytypes() {
        return videoService.gettypes();
    }

    @Override
    public VideoType queryVideoTypeByid(Integer id) {
        return videoService.getOneType(id);
    }

}
